package com.ycdx.zwzc.action;

import java.util.List;

import org.apache.struts2.json.annotations.JSON;

import com.opensymphony.xwork2.ActionSupport;
import com.ycdx.zwzc.impl.RequestImpl;

public class AjaxAction extends ActionSupport{

	/**
	 * 
	 */
	private static final long serialVersionUID = -6160157873332423050L;
	
	private String serviceNum;
	private List<Integer> result;
	
	@JSON(name="result")
	public List<Integer> getResult() {
		return result;
	}
	
	public void setResult(List<Integer> result) {
		this.result = result;
	}

	public String getServiceNum() {
		return serviceNum;
	}

	public void setServiceNum(String serviceNum) {
		this.serviceNum = serviceNum;
	}
	
	public String ajaxCheckServiceNumStatus(){
		//System.out.println(typeId);
	    try{
	    	result = RequestImpl.checkStatusByServiceNum(serviceNum);
	    }catch(Exception e){
	        e.printStackTrace();
	    }
	    return SUCCESS;
	}
	
}
